<?php
namespace app\admin\controller;

use think\Controller;
use app\admin\service\DetectionService;

class Detection extends Controller
{
    private $detectionService;

    /**
     * 依赖注入 Service
     *
     * @param DetectionService $detectionService
     * @author zws
     */
    public function __construct(DetectionService $detectionService)
    {
        $this->detectionService = $detectionService;
        parent::__construct();
    }

    /**
     * 检测数据列表
     * @return \think\response\Json
     * @author zws
     */
    public function index()
    {
        $input = $this->request->input;
        $result = $this->detectionService->index($input);
        return app_response(200, $result);
    }

    public function getGd()
    {
        $input = $this->request->input;
        $result = $this->detectionService->getGd($input);
        return app_response(200, $result);
    }



}